<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>v-for</title>
</head>
<body>
	<div id="div">
		<ul>
			<li v-for="item in arr">{{item}}</li>
		</ul>
		<ul>
			<li v-for="item in 5">{{item}}</li>
		</ul>
		<ul>
			<li v-for="(item,index,key) in obj">{{index}}---{{key}}---{{item}}</li>
		</ul>
	</div>
    <script src="vue.js"></script>
    <script>
    	const vm=new Vue({
    		el:'#div',
    		data:{
    			arr:['哈哈','嘻嘻','呵呵'],
    			obj:{'name':'张三','age':'18','sex':'男'}
    		}
    	})
    </script>

</body>
</html>